package zhongbo.java.air.flightpath.listener;

import cn.hutool.core.util.StrUtil;
import cn.hutool.json.JSONObject;
import cn.hutool.json.JSONUtil;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.redis.connection.Message;
import org.springframework.data.redis.connection.MessageListener;
import org.springframework.stereotype.Component;
import zhongbo.java.air.flightpath.mapper.FlightPathAddMapper;
import zhongbo.java.air.flightpath.model.FlightPathl;

@Component
@Slf4j
public class RedisSubscribeLogChaneIListener implements MessageListener {
    @Override
    public void onMessage(Message message, byte[] bytes) {
        byte[] messageBody = message.getBody();
        String msgString = new String(messageBody);
        log.info("接收到订阅日志的消息: {}", msgString);

    }
}
